/* HTML5 */
nav,
aside,
figure,
footer,
header,
hgroup,
section,
article,
details,
figcaption {
    display: block;
}

audio,
video,
canvas {
    display: inline-block;
    *display: inline;
    *zoom: 1;
}

[ hidden ],
audio:not( [ controls ] ) {
    display: none;
}


/* Body */
body {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font: 100%/1.5 sans-serif;
    margin: 0;
    overflow-y: scroll;
}

::-moz-selection {
    background: #333;
    color: #fff;
    text-shadow: none;
}

::selection {
    background: #09c;
    color: #fff;
    text-shadow: none;
}


/* Anchors */
a:focus {
    outline: thin dotted;
}

a:hover,
a:active {
    outline: 0;
}


/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: normal;
}
address {
    font-style: normal;
}
abbr[ title ] {
    border-bottom: thin dotted;
    cursor: help;
}

b,
strong {
    font-weight: bold;
}

blockquote {
    margin: 1em 2.5em;
}

dfn {
    font-style: italic;
}

ins {
    background: #ff9;
    color: #000;
    text-decoration: none;
}

mark {
    background: #ff0;
    color: #000;
}

pre,
kbd,
code,
samp {
    font-family: monospace, serif;
    font-size: 1em;
}

pre {
    white-space: pre;
    white-space: pre-wrap;
    word-wrap: break-word;
}

q {
    quotes: none;
}

q:before,
q:after {
    content: '';
    content: none;
}

small {
    font-size: 75%;
}

rt,
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

rt,
sup {
    top: -.5em;
}

sub {
    bottom: -.25em;
}

hr {
    border: 0;
    border-top: thin solid #ccc;
    clear: both;
    display: block;
    height: 1px;
    margin: 1em 0;
    padding: 0;
}


/* Lists */
ul,
ol {
    margin: 1em 0;
    padding: 0 0 0 2.5em;
}

dd {
    margin: 0 0 0 2.5em;
}

nav ul,
nav ol {
    list-style: none;
    list-style-image: none;
    margin: 0;
    padding: 0;
}


/* Embeds */
img {
    -ms-interpolation-mode: bicubic;
    border: 0;
}

svg:not( :root ) {
    overflow: hidden;
}


/* Figures */
figure {
    margin: 0;
}


/* Forms */
form {
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 1em;
}

legend {
    border: 0;
    *margin-left: -7px;
}

label {
    cursor: pointer;
    padding: 0 1em;
}

input,
button,
select,
textarea {
    font-family: sans-serif;
    font-size: 100%;
    margin: 0;
    vertical-align: baseline;
    *vertical-align: middle;
}

input,
button {
    line-height: normal;
    *overflow: visible;
}

button,
input[ type="reset" ],
input[ type="button" ],
input[ type="submit" ] {
    -webkit-appearance: button;
    cursor: pointer;
}

input[ type="radio" ],
input[ type="checkbox" ] {
    box-sizing: border-box;
    padding: 0;
}

input[ type="search" ] {
    -moz-box-sizing: content-box;
    -webkit-appearance: textfield;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

input[ type="search" ]::-webkit-search-decoration {
    -webkit-appearance: none;
}

input::-moz-focus-inner,
button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

textarea {
    overflow: auto;
    resize: vertical;
    vertical-align: top;
}

input:invalid,
textarea:invalid {
    background: #f0dddd;
}


/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

td {
    vertical-align: top;
}

table input,
table button {
    *overflow: auto;
}

/* General */
body {
    background: #daecf2 url( '../img/bg.png' );
    border-top: thick solid;
    -moz-box-shadow: 0 1px 0 #fff inset;
    -ms-box-shadow: 0 1px 0 #fff inset;
    -o-box-shadow: 0 1px 0 #fff inset;
    -webkit-box-shadow: 0 1px 0 #fff inset;
    box-shadow: 0 1px 0 #fff inset;
    color: #333;
    padding: 1.5em 0;
    font-family: Ubuntu, 'Helvetica Neue', Helvetica, sans-serif;
    text-shadow: 0 1px 0 #fff;
}

a {
    color: #09c;
    text-decoration: none;
    -moz-transition: all .25s ease-in-out;
    -ms-transition: all .25s ease-in-out;
    -o-transition: all .25s ease-in-out;
    -webkit-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
}

a:hover {
    color: #00bfff;
}

i {
    font-family: 'IM Fell Great Primer', 'Hoefler Text', serif;
    font-weight: normal;
    text-transform: none;
}

/* Wrapper */
#wrap {
    margin: auto;
    max-width: 40em;
    position: relative;
}

/* Header */
#head hgroup {
    padding: 0 1.5em 1.5em;
    position: relative;
    text-align: center;
}

#head h1,
#head h2 {
    margin: 0;
}

#head h1 img {
    height: auto;
    margin: 0 0 .25em;
    -moz-transition: all .1s ease-in-out;
    -ms-transition: all .1s ease-in-out;
    -o-transition: all .1s ease-in-out;
    -webkit-transition: all .1s ease-in-out;
    transition: all .1s ease-in-out;
    vertical-align: bottom;
    width: 228px;
}

#head h1 a:focus img,
#head h1 a:hover img {
    position: relative;
    top: .1em;
}

#head h2 {
    font-size: 100%;
    font-weight: normal;
}

/* Body */
#body {
    background: #fff;
    background: rgba( 255, 255, 255, .8 );
    -moz-box-shadow: 0 0 .5em rgba( 0, 0, 0, .1 );
    -ms-box-shadow: 0 0 .5em rgba( 0, 0, 0, .1 );
    -o-box-shadow: 0 0 .5em rgba( 0, 0, 0, .1 );
    -webkit-box-shadow: 0 0 .5em rgba( 0, 0, 0, .1 );
    box-shadow: 0 0 .5em rgba( 0, 0, 0, .1 );
    color: #004c66;
    padding: 1.5em;
    text-shadow: none;
}

/* Entry */
#entry hgroup {
    border-bottom: thin solid #eee;
    margin: 0 -1.5em 1.5em;
    padding: 0 1.5em 1.5em;
}

#entry h1,
#entry h2 {
    margin: 0;
}

#entry h1 {
    color: #09c;
    font-size: 150%;
}

#entry h2 {
    font-size: 100%;
    font-weight: normal;
}

/* Showcase */
#showcase img + img {
    display: none;
}

#entry nav {
    text-align: center;
}

#entry nav a {
    background: #ccc;
    background: rgba( 0, 0, 0, .2 );
    -moz-border-radius: 1em;
    -ms-border-radius: 1em;
    -o-border-radius: 1em;
    -webkit-border-radius: 1em;
    border-radius: 1em;
    cursor: pointer;
    display: inline-block;
    margin: -1em .25em 1.5em;
    height: 1em;
    width: 1em;
}

#entry nav a.active {
    background: #bbb;
    background: rgba( 0, 0, 0, .4 );
}

#entry nav a:focus,
#entry nav a:hover {
    background: #aaa;
    background: rgba( 0, 0, 0, .8 );
}

/* Content */
#content ol {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

#content li {
    display: inline-block;
    margin: 0 1% 3%;
    width: 30%;
}

#content div {
    margin: 0 0 1.5em;
}

#content img {
    -moz-border-radius: .5em;
    -ms-border-radius: .5em;
    -o-border-radius: .5em;
    -webkit-border-radius: .5em;
    border-radius: .5em;
    height: auto;
    opacity: .8;
    -moz-transition: all .25s ease-in-out;
    -ms-transition: all .25s ease-in-out;
    -o-transition: all .25s ease-in-out;
    -webkit-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
    vertical-align: bottom;
    width: 100%;
}

#content a:focus img,
#content a:hover img {
    -moz-box-shadow: 0 .25em .5em rgba( 0, 0, 0, .25 );
    -ms-box-shadow: 0 .25em .5em rgba( 0, 0, 0, .25 );
    -o-box-shadow: 0 .25em .5em rgba( 0, 0, 0, .25 );
    -webkit-box-shadow: 0 .25em .5em rgba( 0, 0, 0, .25 );
    box-shadow: 0 .25em .5em rgba( 0, 0, 0, .25 );
    opacity: 1;
}

#content a:focus img.soon,
#content a:hover img.soon {
    -moz-box-shadow: none;
    -ms-box-shadow: none;
    -o-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    opacity: .25;
}


#content a:active img {
    -moz-box-shadow: 0 .1em .25em rgba( 0, 0, 0, .25 );
    -ms-box-shadow: 0 .1em .25em rgba( 0, 0, 0, .25 );
    -o-box-shadow: 0 .1em .25em rgba( 0, 0, 0, .25 );
    -webkit-box-shadow: 0 .1em .25em rgba( 0, 0, 0, .25 );
    box-shadow: 0 .1em .25em rgba( 0, 0, 0, .25 );
}

/* Sidebar */
#sidebar {
    border-top: thin solid #eee;
    margin: 0 -1.5em;
    padding: 0 1.5em;
}

#sidebar h1 {
    border-top: thin solid #eee;
    font-size: 125%;
    font-weight: normal;
    margin: 0 -1.2em;
    padding: .6em 1.2em;
    text-transform: uppercase;
}

#sidebar ul {
    cursor: default;
    list-style: none;
    margin: 0 0 1.5em;
    padding: 0;
}

#sidebar li {
    background: #e6eff2;
    border: thin solid transparent;
    -moz-border-radius: .25em;
    -ms-border-radius: .25em;
    -o-border-radius: .25em;
    -webkit-border-radius: .25em;
    border-radius: .25em;
    font-size: smaller;
    display: inline-block;
    margin: 0 0 .5em;
    padding: .25em .5em;
    -moz-transition: all .25s ease-in-out;
    -ms-transition: all .25s ease-in-out;
    -o-transition: all .25s ease-in-out;
    -webkit-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
    vertical-align: bottom;
}

#sidebar.error li {
    display: block;
}

#sidebar li abbr {
    border: 0;
}


/* About */
#about {
    color: #09c;
}

#about a {
    font-weight: bold;
}

#about img {
    display: block;
    height: auto;
    margin: 1.5em auto 0;
    width: 128px;
}

#about p {
    margin: 0 0 1.5em;
}

/* Skills */
#skills ul {
    text-align: justify;
}

#skills:hover li {
    background: transparent;
    -moz-border-radius: .25em .25em 0 0;
    -ms-border-radius: .25em .25em 0 0;
    -o-border-radius: .25em .25em 0 0;
    -webkit-border-radius: .25em .25em 0 0;
    border-radius: .25em .25em 0 0;
}

#skills:hover li.expert {
    border-bottom-width: thick;
    border-color: #00bfff;
    color: #00bfff;
}

#skills:hover li.advanced {
    border-bottom-width: medium;
    border-color: #09c;
    color: #09c;
}

#skills:hover li.intermediate {
    border-bottom-width: thin;
    border-color: #007399;
    color: #007399;
}

#skills:hover li.beginner {
    border-color: transparent;
    -moz-border-radius: 0 0 .25em .25em;
    -ms-border-radius: 0 0 .25em .25em;
    -o-border-radius: 0 0 .25em .25em;
    -webkit-border-radius: 0 0 .25em .25em;
    border-radius: 0 0 .25em .25em;
    -moz-box-shadow: 0 .1em .25em rgba( 0, 0, 0, .25 ) inset;
    -ms-box-shadow: 0 .1em .25em rgba( 0, 0, 0, .25 ) inset;
    -o-box-shadow: 0 .1em .25em rgba( 0, 0, 0, .25 ) inset;
    -webkit-box-shadow: 0 .1em .25em rgba( 0, 0, 0, .25 ) inset;
    box-shadow: 0 .1em .25em rgba( 0, 0, 0, .25 ) inset;
    color: #004c66;
}

/* Colophon */
#colophon {
    clear: both;
}

#colophon h1 {
    padding: .6em 1.2em 0;
}

#colophon p {
    margin: 0;
}

#colophon a {
    border-bottom: thin solid;
    color: inherit;
}

#colophon a:focus,
#colophon a:hover {
    border-color: transparent;
    color: #09c;
}

/* Info */

#info {
    margin: 1.5em 0 0;
}

#info p {
    margin: 0 0 1.5em;
}

#info p:last-child {
    margin: 0;
}

/* Touch */
#touch {
    background: #333;
    background: transparent -moz-linear-gradient( rgba( 0, 0, 0, .4 ), rgba( 0, 0, 0, .6 ) 50%, rgba( 0, 0, 0, .8 ) 50%, rgba( 0, 0, 0, .6 ) );
    background: transparent -ms-linear-gradient( rgba( 0, 0, 0, .4 ), rgba( 0, 0, 0, .6 ) 50%, rgba( 0, 0, 0, .8 ) 50%, rgba( 0, 0, 0, .6 ) );
    background: transparent -o-linear-gradient( rgba( 0, 0, 0, .4 ), rgba( 0, 0, 0, .6 ) 50%, rgba( 0, 0, 0, .8 ) 50%, rgba( 0, 0, 0, .6 ) );
    background: transparent -webkit-linear-gradient( rgba( 0, 0, 0, .4 ), rgba( 0, 0, 0, .6 ) 50%, rgba( 0, 0, 0, .8 ) 50%, rgba( 0, 0, 0, .6 ) );
    background: transparent -webkit-gradient( linear, left top, left bottom, from( rgba( 0, 0, 0, .4 ) ), to( rgba( 0, 0, 0, .6 ) ), color-stop( 50%, rgba( 0, 0, 0, .6 ) ), color-stop( 50%, rgba( 0, 0, 0, .8 ) ) );
    background: transparent linear-gradient( rgba( 0, 0, 0, .4 ), rgba( 0, 0, 0, .6 ) 50%, rgba( 0, 0, 0, .8 ) 50%, rgba( 0, 0, 0, .6 ) );
    -moz-box-shadow: 0 0 .25em rgba( 0, 0, 0, .25 );
    -ms-box-shadow: 0 0 .25em rgba( 0, 0, 0, .25 );
    -o-box-shadow: 0 0 .25em rgba( 0, 0, 0, .25 );
    -webkit-box-shadow: 0 0 .25em rgba( 0, 0, 0, .25 );
    box-shadow: 0 0 .25em rgba( 0, 0, 0, .25 );
    color: #daecf2;
    display: block;
    font-size: larger;
    margin: 0 0 1.2em;
    padding: .6em 1.2em;
    text-align: center;
    text-shadow: 0 -1px 1px #000;
}

#touch:focus,
#touch:hover {
    background: #111;
    background: transparent -moz-linear-gradient( rgba( 0, 0, 0, .6 ), rgba( 0, 0, 0, .8 ) 50%, rgba( 0, 0, 0, 1 ) 50%, rgba( 0, 0, 0, .8 ) );
    background: transparent -ms-linear-gradient( rgba( 0, 0, 0, .6 ), rgba( 0, 0, 0, .8 ) 50%, rgba( 0, 0, 0, 1 ) 50%, rgba( 0, 0, 0, .8 ) );
    background: transparent -o-linear-gradient( rgba( 0, 0, 0, .6 ), rgba( 0, 0, 0, .8 ) 50%, rgba( 0, 0, 0, 1 ) 50%, rgba( 0, 0, 0, .8 ) );
    background: transparent -webkit-gradient( linear, left top, left bottom, from( rgba( 0, 0, 0, .6 ) ), to( rgba( 0, 0, 0, .8 ) ), color-stop( 50%, rgba( 0, 0, 0, .8 ) ), color-stop( 50%, rgba( 0, 0, 0, 1 ) ) );
    background: transparent -webkit-linear-gradient( rgba( 0, 0, 0, .6 ), rgba( 0, 0, 0, .8 ) 50%, rgba( 0, 0, 0, 1 ) 50%, rgba( 0, 0, 0, .8 ) );
    background: transparent linear-gradient( rgba( 0, 0, 0, .6 ), rgba( 0, 0, 0, .8 ) 50%, rgba( 0, 0, 0, 1 ) 50%, rgba( 0, 0, 0, .8 ) );
}

#touch:active {
    -moz-box-shadow: 0 .75em 1.5em rgba( 0, 0, 0, 1 ) inset;
    -ms-box-shadow: 0 .75em 1.5em rgba( 0, 0, 0, 1 ) inset;
    -o-box-shadow: 0 .75em 1.5em rgba( 0, 0, 0, 1 ) inset;
    -webkit-box-shadow: 0 .75em 1.5em rgba( 0, 0, 0, 1 ) inset;
    box-shadow: 0 .75em 1.5em rgba( 0, 0, 0, 1 ) inset;
}

/* Footer */
#foot {
    font-size: smaller;
    text-align: center;
}

@media only screen and ( min-width: 480px ) {
    #about img {
        float: left;
        margin: 1.5em 0 1.5em -1.5em;
    }

    #about p {
        margin: 1.5em 0 1.5em 128px;
    }
}

@media only screen and ( min-width: 640px ) {
    #body {
        -mozborder-radius: .5em;
        -ms-border-radius: .5em;
        -o-border-radius: .5em;
        -webkit-border-radius: .5em;
        border-radius: .5em;
        margin: 0 0 1.5em;
    }

    #head hgroup {
        padding: 0 0 1.5em;
        text-align: left;
    }

    #head h1 img {
        margin: 0;
    }

    #head h2 {
        bottom: 1.5em;
        margin: 0 0 0 228px;
        padding: 0 0 0 1.5em;
        position: absolute;
        right: 0;
    }

    #skills,
    #honors {
        width: 48.5%;
    }

    #skills {
        float: left;
    }

    #skills ul {
        margin: 0 0 1.5em;
    }

    #honors {
        float: right;
    }

    #touch {
        background: #333;
        -moz-box-shadow: 0 1px 0 #fff;
        -ms-box-shadow: 0 1px 0 #fff;
        -o-box-shadow: 0 1px 0 #fff;
        -webkit-box-shadow: 0 1px 0 #fff;
        box-shadow: 0 1px 0 #fff;
        -moz-border-radius: 0 0 .5em .5em;
        -ms-border-radius: 0 0 .5em .5em;
        -o-border-radius: 0 0 .5em .5em;
        -webkit-border-radius: 0 0 .5em .5em;
        border-radius: 0 0 .5em .5em;
        font-size: smaller;
        margin: 0;
        padding: .5em 1em;
        position: absolute;
        right: 0;
        text-shadow: none;
        top: -2em;
    }

    #touch:focus,
    #touch:hover {
        background: #333;
        -moz-box-shadow: 0 .25em .25em rgba( 0, 0, 0, .25 );
        -ms-box-shadow: 0 .25em .25em rgba( 0, 0, 0, .25 );
        -o-box-shadow: 0 .25em .25em rgba( 0, 0, 0, .25 );
        -webkit-box-shadow: 0 .25em .25em rgba( 0, 0, 0, .25 );
        box-shadow: 0 .25em .25em rgba( 0, 0, 0, .25 );
    }

    #touch:active {
        background: #111;
        background: -webkit-linear-gradient( #333, #111 );
        -moz-box-shadow: 0 1px 0 #fff;
        -ms-box-shadow: 0 1px 0 #fff;
        -o-box-shadow: 0 1px 0 #fff;
        -webkit-box-shadow: 0 1px 0 #fff;
        box-shadow: 0 1px 0 #fff;
    }
}

@media only screen and ( min-width: 688px ) {
    body {
        padding: 1.5em;
    }

    #wrap {
        max-width: 80em;
    }
}

@media only screen and ( min-width: 960px ) {
    #body {
        -moz-border-radius: .5em;
        -ms-border-radius: .5em;
        -o-border-radius: .5em;
        -webkit-border-radius: .5em;
        border-radius: .5em;
    }

    #entry nav a {
        background: #ccc;
        background: rgba( 0, 0, 0, .1 );
        -moz-border-radius: 1em;
        -ms-border-radius: 1em;
        -o-border-radius: 1em;
        -webkit-border-radius: 1em;
        border-radius: 1em;
        cursor: pointer;
        display: inline-block;
        margin: .5em .25em 0;
        height: 1em;
        width: 1em;
    }

    #content {
        float: left;
        width: 62%;
    }

    #content ol {
        margin: 0 0 -3%;
    }

    #content div {
        margin: 0;
    }

    #sidebar {
        border: 0;
        float: right;
        margin: 0;
        padding: 0;
        width: 36%;
    }

    #sidebar h1 {
        border: 0;
        margin: 0;
        padding: 0 0 .6em 0;
    }

    #colophon h1 {
        padding: 0;
    }

    #about img {
        float: none;
        margin: auto;
    }

    #about p {
        margin: 0 0 1.5em;
    }

    #skills,
    #honors {
        float: none;
        width: auto;
    }

    #skills ul {
        margin: 0 0 1.5em;
    }

    #info {
        margin: 0;
    }
}


/* .ir - Image replacement. */
.ir {
    background-color: transparent;
    background-repeat: no-repeat;
    border: 0;
    direction: ltr;
    display: block;
    overflow: hidden;
    text-align: left;
    text-indent: -999em;
}

.ir br {
    display: none;
}


/* .hide - Hide completely. */
.hide {
    display: none !important;
    visibility: hidden;
}


/* .ghost - Hide visually. */
.ghost {
    border: 0;
    clip: rect( 0 0 0 0 );
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}


/* .ghost.focus - Hide visually, allow keyboard focus. */
.ghost.focus:active,
.ghost.focus:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}


/* .mask - Hide while maintaining layout. */
.mask {
    visibility: hidden;
}


/* .cf - Clearfix. */
.cf:after,
.cf:before {
    content: "";
    display: table;
}

.cf:after {
    clear: both;
}

.cf {
    *zoom: 1;
}


@media print {
    @page {
        margin: 0.5cm;
    }

    * {
        background: transparent !important;
        color: #000 !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[ href ]:after {
        content: " (" attr(href) ")";
    }

    abbr[ title ]:after {
        content: " (" attr(title) ")";
    }

    .ir a:after,
    a[ href^="javascript:" ]:after,
    a[ href^="#" ]:after {
        content: "";
    }

    pre,
    blockquote {
        border: thin solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        orphans: 3;
        widows: 3;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
    }
}